<?
	
	function getNbLogin($login) {
		$req = mysql_query("SELECT * FROM users WHERE login='".$login."'");
		$num = mysql_num_rows($req);
		
		return $num;
	}
	
	function getPasswdByLogin($login) {
		$req = mysql_query("SELECT * FROM users WHERE login='".$login."'");
		$res = mysql_fetch_object($req);
		
		return($res->passwd);
	}
?>